copyq:

var http_link = read(0);

if (str(http_link) === "") {
    popup("上传失败");
}
else {
    markdown_link = "![](" + http_link + ")";
    insert(0, markdown_link);
    insert(1, http_link);
    insert(2, "[------end of new link------]");
    popup("上传成功", http_link);
    copy(markdown_link);
    paste();
}
